package life.mahu.community.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
@Slf4j
public class AdminController {

    /**
     * 返回后台管理主页面
     * @return
     */
    @GetMapping("/admin/index")
    public String getIndex(){
        return "admin/index";
    }
    @GetMapping("/admin")
    public String getIndex2(){
        return "admin/index";
    }


    /**
     * 返回main页面
     * @return
     */
    @GetMapping("/admin/main")
    public String getMian(){
        return "admin/main";
    }

    /**
     * 返回demo页面
     * @return
     */
    @GetMapping("/admin/demo")
    public String getDemo(){
        return "admin/demo";
    }

}
